/**
 * @param {number[][]} accounts
 * @return {number}
 */
export var maximumWealth = function (accounts) {
  let ans = 0
  for (let i = 0; i < accounts.length; i++) {
    const sum = accounts[i].reduce((prev, curr) => {
      return prev + curr
    })
    if (sum > ans) ans = sum
  }
  return ans
}
